package com.jackwoo.jerrymouse.util;

import java.io.*;
import java.util.LinkedList;
import java.util.List;

/**
 * Author: StupidZhe
 * Date: 2019/11/29
 * Desc:
 **/
public class IOUtil {

    public static byte[] getBytes(InputStream inputStream) throws IOException {
        BufferedInputStream reader = new BufferedInputStream(inputStream);
        while (inputStream.available() == 0) {

        }
        System.err.println(reader.available());
        byte[] tmp = new byte[reader.available()];

        reader.read(tmp);
        return tmp;
    }
}
